import { createApp } from 'vue'
import App from './App.vue'
import router from './router/router.ts'
// 导入Pinia
import { createPinia } from 'pinia'
// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { SwipeCell } from 'vant';
import 'vant/lib/index.css'

const app = createApp(App)
// 创建并使用Pinia实例
const pinia = createPinia()
app.use(pinia)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(SwipeCell)
app.use(router)
app.mount("#app")